﻿package mortal.game.view.lotteryDraw
{
    import Message.DB.Tables.*;
    import mortal.game.resource.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.view.ThanksGiving.command.*;

    public class LotteryExchangeConst extends Object
    {
        public static const Tag_GodExchange:int = 0;
        public static const Tag_ElfExchange:int = 1;
        public static const Tag_WeiDingExchange:int = 2;
        public static const Tag_TanksGivingChange:int = 3;
        public static const Tag_TotalNum:int = 2;

        public function LotteryExchangeConst()
        {
            return;
        }// end function

        public static function get exchangeDataArr() : Array
        {
            var _loc_2:LotteryExchangeCategoryData = null;
            var _loc_3:TShop = null;
            var _loc_1:Array = [];
            _loc_2 = addShopTab(3020, GameDefConfig.instance.getSystemOpenLevel(85), Tag_GodExchange);
            _loc_1.push(_loc_2);
            _loc_2 = addShopTab(3021, GameDefConfig.instance.getSystemOpenLevel(86), Tag_ElfExchange);
            _loc_1.push(_loc_2);
            _loc_2 = addShopTab(3022, GameDefConfig.instance.getSystemOpenLevel(91), Tag_WeiDingExchange);
            _loc_1.push(_loc_2);
            if (ThanksGivingUtil2.isInActive)
            {
                _loc_3 = ShopConfig.instance.getTShopByCode(3040);
                _loc_2 = addShopTab(3040, 0, Tag_TanksGivingChange);
                _loc_1.push(_loc_2);
            }
            return _loc_1;
        }// end function

        private static function addShopTab(param1:int, param2:int, param3:int) : LotteryExchangeCategoryData
        {
            var _loc_4:* = new LotteryExchangeCategoryData();
            _loc_4.shopCode = param1;
            _loc_4.level = param2;
            _loc_4.index = param3;
            return _loc_4;
        }// end function

    }
}
